<template>

  <el-col :span="24">
    <span>从</span>
    <el-date-picker
    v-model="option.value[0]"
    type="datetime"
    placeholder="开始时间"
    :validate-event="true"
    :value-format="option.valueFormat||'yyyy-MM-dd HH:mm:ss'"
    :default-time="option.defaultTime[0]"
    :disabled="option.start_time"
    >
   </el-date-picker>
    <span>至</span>
    <el-date-picker
    v-model="option.value[1]"
    type="datetime"
    placeholder="结束时间"
    :validate-event="true"
    :value-format="option.valueFormat||'yyyy-MM-dd HH:mm:ss'"
    :default-time="option.defaultTime[1]"
    :disabled="option.end_time"
    >
    </el-date-picker>
  </el-col>

</template>
<script>
export default {
	name: 'vDate',
	props: {
		option: {
			type: Object,
			default() {
				return {
          defaultTime: ['00:00:00'],
          readonly:false,
          start_time:false,
          end_time:false
				};
			},
		},
	},
};
</script>

